var  BASE = BASE||{}; //全局公用方

BASE.SOURCECOMMON = (function () {
    function uploadProjectfile(obj) {
        BASE.UPLOADANSWER.uploadFile(obj,function (url) {
            var name = obj.files[0].name || '项目需求表';
            BASE.clearpop('上传成功');
            $('body').data('file-url',url);
            $('#fileUrlLink').fadeIn().find('span').text(name);
        })
    }
    /*删除需求文件*/
    function removeFile() {
        $('body').data('file-url',null);
        $('#fileUrlLink').fadeOut();
    }
   
    return{
        removeFile:removeFile,
        uploadProjectfile:uploadProjectfile,
    }
})();

/**
 * Created by EDZ on 2018/10/19.
 */
